<if condition="!empty($cartList)">
<style type="text/css">
.j-mini-cart{
	height:312px;
}

</style>
<div class="j-m-w"></div>
<div class="new-cart box-scroll ">
	<div class="cart-item">
		<ul>
		<foreach name="cartList" item="v"  key="k">
			<li><a href="{:leuu('article/index',array('id'=>$v['goods_cat_id'],'g_id'=>$v['goods_id']))}"><img class="fl" src="{$v.goods_id|goods_thumb_images=60,60}" alt="" /></a><span class="fl name"><a href="{:leuu('article/index',array('id'=>$v['goods_cat_id'],'g_id'=>$v['goods_id']))}" title="{$v.goods_name}" class="">{$v.goods_name|msubstr=0,10,'utf8',''}</a><p class="spec-num">{$v.spec_item_name}  &nbsp;&nbsp;x{$v[goods_num]}</p></span><i class="fa fa-times fr" onClick="delCart('{$v[goods_id]}','{$v[spec_path]}',this)"></i><span class="r-yen fr">¥{$v[member_goods_price]}</span></li>
		</foreach>
		</ul>
	</div>
</div>
<div class="go-cart">
	<p class="fl">共<em>{$cart_total_price[num]}</em>件商品，合计<b>¥{$cart_total_price[total_fee]}</b></p>
    <a class="js-button fr" href="{:U('Goods/Cart/cart')}">去结算</a>
</div>
<script>
   $(".shopping-num > em").text('{$cart_total_price[num]}'); // 购物车的总数量
</script>
<else />
<style type="text/css">
	.j-mini-cart{
		height:82px;
		line-height:82px;
		padding:0;
	}
	
</style>
<div class="j-m-w"></div>
<p style="text-align:center;font-size:16px;color:#999;"><i class="fa fa-shopping-cart" style="margin-right:5px;"></i>购物车还没有商品</p>
</if>
